package com.wlps.vo.warehousecenter.warehoused;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/8/2
 */
@Data
@ApiModel(value = "退货单Vo")
public class WarehousedVo {
    @ApiModelProperty(value = "任务号")
    private Long id;

    @ApiModelProperty(value = "配送员代号/员工id.员工表外键")
    private Long userId;

    @ApiModelProperty(value = "配送费")
    private Double serviceMoney;

    @ApiModelProperty(value = "客户id,客户表外键")
    private Long clientId;

    @ApiModelProperty(value = "客户满意度")
    private String customerSatisfaction;

    @ApiModelProperty(value = "任务类型,送货收款(0)、 换货(1)、 退货(2)、 默认为0")
    private Integer taskType;

    @ApiModelProperty(value = "任务状态,配送员分配中(-1)、已领货(0)、 部分完成（1）、 完成（2）、 失败（3）、 已退货（4）、默认-1")
    private Integer taskStatus;

    @ApiModelProperty(value = "客户反馈")
    private String clientFeedback;

    @ApiModelProperty(value = "服务时间信息")
    private String servicetimeInformation;

    @ApiModelProperty(value = "备注信息")
    private String remark;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "订单号")
    private Long orderId;

    @ApiModelProperty(value = "退货商品列表")
    private List<GoodsVo> goodsVoList;
}
